﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Interface IViewport
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Interface IViewport
   ">
    <meta name="generator" content="docfx 2.40.12.0">
    
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    <meta property="docfx:rel" content="../">
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../images/logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Mapsui.IViewport">
  
  
  <h1 id="Mapsui_IViewport" data-uid="Mapsui.IViewport" class="text-break">Interface IViewport
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_ViewportChanged">IReadOnlyViewport.ViewportChanged</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Center">IReadOnlyViewport.Center</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Resolution">IReadOnlyViewport.Resolution</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Extent">IReadOnlyViewport.Extent</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Width">IReadOnlyViewport.Width</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Height">IReadOnlyViewport.Height</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_Rotation">IReadOnlyViewport.Rotation</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_HasSize">IReadOnlyViewport.HasSize</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_IsRotated">IReadOnlyViewport.IsRotated</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_ScreenToWorld_Mapsui_Geometries_Point_">IReadOnlyViewport.ScreenToWorld(Point)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_ScreenToWorld_System_Double_System_Double_">IReadOnlyViewport.ScreenToWorld(Double, Double)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_WorldToScreen_Mapsui_Geometries_Point_">IReadOnlyViewport.WorldToScreen(Point)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_WorldToScreen_System_Double_System_Double_">IReadOnlyViewport.WorldToScreen(Double, Double)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_WorldToScreenUnrotated_System_Double_System_Double_">IReadOnlyViewport.WorldToScreenUnrotated(Double, Double)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_WorldToScreenUnrotated_Mapsui_Geometries_Point_">IReadOnlyViewport.WorldToScreenUnrotated(Point)</a>
    </div>
    <div>
      <a class="xref" href="Mapsui.IReadOnlyViewport.html#Mapsui_IReadOnlyViewport_WindowExtent">IReadOnlyViewport.WindowExtent</a>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Mapsui.html">Mapsui</a></h6>
  <h6><strong>Assembly</strong>: Mapsui.dll</h6>
  <h5 id="Mapsui_IViewport_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IViewport : IReadOnlyViewport</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_SetCenter_Mapsui_Geometries_ReadOnlyPoint_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.SetCenter(Mapsui.Geometries.ReadOnlyPoint)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L25">View Source</a>
  </span>
  <a id="Mapsui_IViewport_SetCenter_" data-uid="Mapsui.IViewport.SetCenter*"></a>
  <h4 id="Mapsui_IViewport_SetCenter_Mapsui_Geometries_ReadOnlyPoint_" data-uid="Mapsui.IViewport.SetCenter(Mapsui.Geometries.ReadOnlyPoint)">SetCenter(ReadOnlyPoint)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void SetCenter(ReadOnlyPoint center)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.ReadOnlyPoint.html">ReadOnlyPoint</a></td>
        <td><span class="parametername">center</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_SetCenter_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.SetCenter(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L24">View Source</a>
  </span>
  <a id="Mapsui_IViewport_SetCenter_" data-uid="Mapsui.IViewport.SetCenter*"></a>
  <h4 id="Mapsui_IViewport_SetCenter_System_Double_System_Double_" data-uid="Mapsui.IViewport.SetCenter(System.Double,System.Double)">SetCenter(Double, Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void SetCenter(double x, double y)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">y</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_SetResolution_System_Double_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.SetResolution(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L26">View Source</a>
  </span>
  <a id="Mapsui_IViewport_SetResolution_" data-uid="Mapsui.IViewport.SetResolution*"></a>
  <h4 id="Mapsui_IViewport_SetResolution_System_Double_" data-uid="Mapsui.IViewport.SetResolution(System.Double)">SetResolution(Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void SetResolution(double resolution)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">resolution</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_SetRotation_System_Double_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.SetRotation(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L27">View Source</a>
  </span>
  <a id="Mapsui_IViewport_SetRotation_" data-uid="Mapsui.IViewport.SetRotation*"></a>
  <h4 id="Mapsui_IViewport_SetRotation_System_Double_" data-uid="Mapsui.IViewport.SetRotation(System.Double)">SetRotation(Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void SetRotation(double rotation)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">rotation</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_SetSize_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.SetSize(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L28">View Source</a>
  </span>
  <a id="Mapsui_IViewport_SetSize_" data-uid="Mapsui.IViewport.SetSize*"></a>
  <h4 id="Mapsui_IViewport_SetSize_System_Double_System_Double_" data-uid="Mapsui.IViewport.SetSize(System.Double,System.Double)">SetSize(Double, Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void SetSize(double width, double height)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">width</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">height</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport_Transform_Mapsui_Geometries_Point_Mapsui_Geometries_Point_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20Mapsui.IViewport.Transform(Mapsui.Geometries.Point%2CMapsui.Geometries.Point%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L37">View Source</a>
  </span>
  <a id="Mapsui_IViewport_Transform_" data-uid="Mapsui.IViewport.Transform*"></a>
  <h4 id="Mapsui_IViewport_Transform_Mapsui_Geometries_Point_Mapsui_Geometries_Point_System_Double_System_Double_" data-uid="Mapsui.IViewport.Transform(Mapsui.Geometries.Point,Mapsui.Geometries.Point,System.Double,System.Double)">Transform(Point, Point, Double, Double)</h4>
  <div class="markdown level1 summary"><p>Moving the position of viewport to a new one</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void Transform(Point position, Point previousPosition, double deltaResolution = null, double deltaRotation = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.Point.html">Point</a></td>
        <td><span class="parametername">position</span></td>
        <td><p>Current center of touch</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.Point.html">Point</a></td>
        <td><span class="parametername">previousPosition</span></td>
        <td><p>Previous center of touch</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">deltaResolution</span></td>
        <td><p>Change of resolution for transformation (&lt;1: zoom out, &gt;1: zoom in)</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">deltaRotation</span></td>
        <td><p>Change of rotation</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="Mapsui.Rendering.Skia.ViewportExtensions.html#Mapsui_Rendering_Skia_ViewportExtensions_ToSKMatrix_Mapsui_IViewport_">ViewportExtensions.ToSKMatrix(IViewport)</a>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_IViewport.md&amp;value=---%0Auid%3A%20Mapsui.IViewport%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui/IViewport.cs/#L22" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
